package com.zzq.service.impl;


import com.zzq.domain.dto.SmileShootRecordDTO;
import com.zzq.domain.search.ShootRecordSearchParament;
import com.zzq.result.SmileResult;
import com.zzq.service.PhotoRecordService;
import com.zzq.service.SmileShootRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@Service
public class PhotoRecordServiceImpl implements PhotoRecordService {

    @Autowired
    SmileShootRecordService shootRecordService;
    @Override
    public SmileResult getRecordList(@RequestBody ShootRecordSearchParament searchParament) {
        searchParament.setPay(true);
        List<SmileShootRecordDTO> smileShootRecordDTOs = shootRecordService.getSmileShootRecordDTOs(searchParament);
        return SmileResult.sucess("订单查询成功",smileShootRecordDTOs);
    }
}
